<template>
  <div class="inner-card">
    <div class="inner-card-header">{{ title }}</div>
    <div :class="['inner-card-body', bodyClass]">
      <slot></slot>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'InnerCard',
    props: {
      title: {
        type: String,
        default: '数据报送情况'
      },
      bodyClass: {
        type: String,
        default: 'flex-row'
      }
    }
  }
</script>

<style lang="scss">
  .inner-card {
    @include flex-column;
    height: 100%;
    padding: 4px;
    border: 1px solid #ebeef5;
    border-radius: 4px;

    .inner-card-header {
      margin-right: 4px;
      margin-left: 4px;
      padding-left: 10px;
      color: #595959;
      font-weight: bold;
      font-size: 15px;

      &::before {
        display: inline-block;
        width: 4px;
        height: 14px;
        margin-right: 4px;
        color: #595959;
        font-weight: bold;
        vertical-align: -1px;
        background: var(--color-primary);
        content: '';
      }
    }

    .inner-card-body {
      @include flex-item;
    }
  }
</style>
